package com.kgc.scd.service;

import com.kgc.scd.bean.IndexPic;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.Map;

/**
 * @program: com.kgc.scd.service
 * @author: HarryXzy
 * @create: 2022-06-16 14:42
 * @description:
 **/
@FeignClient(value = "blmall-server-xzy-8101")
public interface IndexPicService {

    @PostMapping("/allIndexPic")
    Map<String, Object> allIndexPic();

    @PostMapping("/addIndexSearch")
    Map<String, Object> addIndexSearch(@RequestBody IndexPic indexPic);

    @PostMapping("/deleteIndexSearch")
    Map<String, Object> deleteIndexSearch(@RequestParam("indexPicId") String indexPicId);

    @PostMapping("/changePicSort")
    Map<String, Object> changePicSort(@RequestParam("indexPicId")String indexPicId,@RequestParam("sort") Integer sort);


}
